package com.chatplus.application.domain.entity.basedata;

import com.baomidou.mybatisplus.annotation.*;
import com.chatplus.application.datasource.id.IdEntity;
import org.apache.ibatis.type.Alias;

import java.math.BigDecimal;

/**
 * <p>Table: t_product - 会员套餐表</p>
 *
 * @author developer
 */
@Alias("product")
@TableName(value = "t_product", autoResultMap = true)
public class ProductEntity extends IdEntity {

    /**
     * 名称
     */
    private String name;
    /**
     * 价格
     */
    private BigDecimal price;
    /**
     * 优惠金额
     */
    private BigDecimal discount;
    /**
     * 延长天数
     */
    private Integer days;
    /**
     * 调用次数
     */
    private Integer calls;
    /**
     * 绘图次数
     */
    private Integer imgCalls;
    /**
     * 是否启动
     */
    private Boolean enabled;
    /**
     * 销量
     */
    private Integer sales;
    /**
     * 排序
     */
    private Integer sortNum;

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name =  name;
    }

    public BigDecimal getPrice() {
        return this.price;
    }

    public void setPrice(BigDecimal price) {
        this.price =  price;
    }

    public BigDecimal getDiscount() {
        return this.discount;
    }

    public void setDiscount(BigDecimal discount) {
        this.discount =  discount;
    }

    public Integer getDays() {
        return this.days;
    }

    public void setDays(Integer days) {
        this.days =  days;
    }

    public Integer getCalls() {
        return this.calls;
    }

    public void setCalls(Integer calls) {
        this.calls =  calls;
    }

    public Integer getImgCalls() {
        return this.imgCalls;
    }

    public void setImgCalls(Integer imgCalls) {
        this.imgCalls =  imgCalls;
    }

    public Boolean getEnabled() {
        return this.enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled =  enabled;
    }

    public Integer getSales() {
        return this.sales;
    }

    public void setSales(Integer sales) {
        this.sales =  sales;
    }

    public Integer getSortNum() {
        return this.sortNum;
    }

    public void setSortNum(Integer sortNum) {
        this.sortNum =  sortNum;
    }

}
